package com.bk.utils;

import java.util.concurrent.Semaphore;

public class BookingTask implements Runnable {

	private Semaphore semaphore;

	private String text;

	public BookingTask(Semaphore semaphore, String text) {
		this.semaphore = semaphore;
		this.text = text;
	}

	@Override
	public void run() {
		try {
//			semaphore.acquire();
			Thread.sleep(1000);
			System.out.println("hello " + text);
//			semaphore.release();
		} catch (Exception e) {
		}
	}

}
